import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpExpress {
  id!: number;
  name!: string;
  code!: string;
  sort!: string;
  type!: string;
  isDelete!: string;
}

export const ImsYzdKpExpressSchema = new EntitySchema({
  class: ImsYzdKpExpress,
  properties: {
    id: { primary: true, type: 'number' },
    name: { type: 'string', length: 255 },
    code: { type: 'string', length: 255, index: 'code' },
    sort: { type: 'string', length: 255, default: '100', index: 'sort' },
    type: { type: 'string', length: 255, index: 'type' },
    isDelete: { type: 'string', length: 255, default: '1' },
  },
});
